Page({
  data: {
    tabActive: 0,
    tabs: ['可使用','已使用','已失效'],
    numList: [8,4,3]
  },
  onTabChange(e) {
    //console.log('onTabChange:',e.detail.index);
    this.setData({tabActive:e.detail.index});
  },
  onCouponClick(e) {
    //console.log('onCouponClick:',e.detail.coupon_id);
    wx.navigateTo({url: '/pages/cart/more/index',});
  },
  toGetCoupons(e) {
    wx.showToast({
      title: '去领券中心',
    })
  }
})